/**
 * Project: apollo-base-dal
 * 
 * File Created at 2017年3月1日
 * 
 * Copyright 2015-2016 dx.com Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * DongXue software Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with dx.com.
 */
package com.dx.pf.dal.conf.db;

/** 
* @ClassName: DriudConstants 
* @Description: TODO(这里用一句话描述这个类的作用) 
* @author wuzhenfang(wzfbj2008@163.com)
* @date 2017年3月1日 下午7:42:04 
* @version V1.0 
*/
public class DriudConstants {

	public final static String name = "name";
	
	public final static String username = "username";
	
	public final static String password = "password";
	
	public final static String url = "url";
	
	public final static String initialSize = "initialSize";
	
	public final static String minIdle = "minIdle";
	
	public final static String maxActive = "maxActive";
	
	//-------------------------下面不建议配置，直接使用常量值---------------------------
	//<!-- 是否缓存preparedStatement，也就是PSCache，在mysql下建议关闭，分库分表较多的数据库，建议配置为false -->
	public final static String poolPreparedStatements = "poolPreparedStatements";
	public final static String poolPreparedStatements_default = "false";
	public final static String maxOpenPreparedStatements = "maxOpenPreparedStatements";
	public final static String maxOpenPreparedStatements_default = "-1";
	//<!-- 申请连接时执行validationQuery检测连接是否有效，做了这个配置会降低性能 -->
	public final static String testOnBorrow = "testOnBorrow";
	public final static String testOnBorrow_default = "false";
	//<!-- 归还连接时执行validationQuery检测连接是否有效，做了这个配置会降低性能 -->
	public final static String testOnReturn = "testOnReturn";
	public final static String testOnReturn_default = "false";
	//<!-- 建议配置为true，不影响性能 -->
	public final static String testWhileIdle = "testWhileIdle";
	public final static String testWhileIdle_default = "true";
	public final static String filters = "filters";
	public final static String filters_default = "mergeStat,log4j,config";
	public final static String connectionProperties = "connectionProperties";
	public final static String connectionProperties_default = "config.decrypt=false";
	//<!-- 合并多个DruidDataSource的监控数据 -->
	public final static String useGlobalDataSourceStat = "useGlobalDataSourceStat";
	public final static String useGlobalDataSourceStat_default = "false";
	//<!-- 保存DruidDataSource的监控记录到日志中 -->
	public final static String timeBetweenLogStatsMillis = "timeBetweenLogStatsMillis";
	public final static String timeBetweenLogStatsMillis_default = "300000";
	
	
	
}
